From: Keir Fraser Date: Tue, 11 Jan 2011 10:37:45 +0000 (+0000) Subject: xenpaging: update machine_to_phys_mapping[] during page-in X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10942 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=bc89270b8a749773ca717a5c21dcce4a9edd7894;p=xen.git xenpaging: update machine_to_phys_mapping[] during page-in Update the machine_to_phys_mapping[] array during page-in. The gfn is now at a different page and the array has still INVALID_M2P_ENTRY in the index. Signed-off-by: Olaf Hering --- diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index c77be9497f..6f7474c043 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -2850,6 +2850,7 @@ void p2m_mem_paging_resume(struct p2m_domain *p2m) mfn = gfn_to_mfn(p2m, rsp.gfn, &p2mt); p2m_lock(p2m); set_p2m_entry(p2m, rsp.gfn, mfn, 0, p2m_ram_rw, p2m->default_access); + set_gpfn_from_mfn(mfn_x(mfn), gfn); audit_p2m(p2m, 1); p2m_unlock(p2m);